<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:include="navigation::nav">
</div>
<h2>我的登分-成绩录入</h2>
<hr>
<div>
    <table width="60%" border="1" cellpadding="0">
        <tbody>
        <tr>
            <th>id</th>
            <th>班级编号</th>
            <th>学号</th>
            <th>学生姓名</th>
            <th>课程编号</th>
            <th>课程名称</th>
            <th>分数</th>
            <th>操作</th>
        </tr>
        <tr th:each="x:${lists}">
            <form action="/tea/add" method="post">
                <td th:if="${x.getId()!=null}"><input type="text" name="id" th:value="${x.getId()}" readonly></td>
                <td th:if="${x.getId()==null}"><input type="text" name="id" value="0" readonly></td>
                <td><input type="text" name="clz.clzno" th:value="${x.getClz().getClzno()}"readonly></td>
                <td><input type="text" name="stu.phone" th:value="${x.getStu().getPhone()}" readonly></td>
                <td><input type="text" name="stu.uname" th:value="${x.getStu().getUname()}"readonly></td>
                <td><input type="text" name="course.con" th:value="${x.getCourse().getCon()}"readonly></td>
                <td><input type="text" name="course.cname" th:value="${x.getCourse().getCname()}"readonly></td>
                <td><input type="text" name="score" th:value="${x.getScore()}"></td>
                <td><input type="submit" value="保存"></td>
            </form>
        </tr>
        </tbody>
    </table>
</div>
</body>
</html>